<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>物业管理软件</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">
	<#include "*/pubcss.ftl">		
</head>

<body>
	<#include "*/top.ftl">
	<!-- topbar ends -->
	<div class="container-fluid">
		<div class="row-fluid">				
			<#include "*/left.ftl">
			<div id="content" class="span10">
			<!-- content starts -->
			<div>
				<ul class="breadcrumb">
					<li>
						<a href="#">系统配置</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">用户管理</a><span class="divider">/</span>
					</li>
					<li>
						<a href="#">用户维护</a>
					</li>
				</ul>
			</div>
			<form class="form-horizontal"  action="javascript:saveUser()">
			<div class="row-fluid sortable">
			    <button type="submit" class="btn btn-primary">保存</button>
				<a href="javascript:openedit();" class="btn btn-primary">修改密码</a>
				<button type="button" class="btn btn-primary" onclick="javascript:editpermission();">修改权限</button>
				<button type="button" class="btn btn-primary" onclick="window.history.back()">返回</button>
		    </div>
		    
		    <div class="row-fluid sortable">
				<div class="box span12">
					<div class="box-header well">
						<h2><i class="icon-edit"></i>用户信息</h2>
					</div>
					<div class="box-content">
						
						  <fieldset>
							<div class="control-group">
								<label class="control-label" for="focusedInput">登录名</label>
								<div class="controls">
								  <#if (Parameters["sign"])?if_exists=='0'>
								     <input class="input-xlarge focused" id="loginid" name="user.loginid" type="text" value="${(user.loginid)?if_exists}">
								  <#else>
								     <input class="input-xlarge focused" id="loginid" disabled name="user.loginid" type="text" value="${(user.loginid)?if_exists}">
								  </#if>
								  
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="focusedInput">姓名</label>
								<div class="controls">
								  <input class="input-xlarge focused" id="name" name="user.name" type="text" value="${(user.name)?if_exists}">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="focusedInput">电话</label>
								<div class="controls">
								  <input class="input-xlarge focused" id="tel" name="user.tel" type="text" value="${(user.tel)?if_exists}">
								</div>
							</div>
						  </fieldset>
						  

					</div>
				</div><!--/span-->

			</div><!--/row-->
		    </form> 
			
		  
       
			<!-- content ends -->
			</div><!--/#content.span10-->
		</div><!--/fluid-row-->

		<hr>

		<div class="modal hide" id="editpwd">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">×</button>
				<h3>修改密码</h3>
			</div>
			<div class="modal-body">
				<p>
					<div class="box-content">
						<form class="form-horizontal" id="pwdform">
						  <fieldset>
							<div class="control-group">
								<label class="control-label" for="focusedInput">登录名</label>
								<div class="controls">
								  <input class="input-xlarge focused" disabled id="pwd_loginid" type="text" value="${(user.loginid)?if_exists}">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="focusedInput">密码</label>
								<div class="controls">
								  <input class="input-xlarge focused" id="pwd" type="password" value="">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="focusedInput">确认密码</label>
								<div class="controls">
								  <input class="input-xlarge focused" id="confirm_pwd" type="password" value="">
								</div>
							</div>
						  </fieldset>
						</form>   
					</div>
				</p>
			</div>
			<div class="modal-footer">
				<a href="#" class="btn" data-dismiss="modal">关闭</a>
				<a href="javascript:savePwd()" class="btn btn-primary">保存</a>
			</div>
		</div>
	</div><!--/.fluid-container-->
	<#include "*/infotemplate/alert.ftl">
    <#include "*/infotemplate/saveinfo.ftl">
	<#include "*/pubjs.ftl">
	<script src='${base}/script/system/user_edit.js'></script>	
</body>
</html>
